import 'package:flutter/material.dart';
import 'package:study_flutter/yzhg/view/route_by_value/RouteByValue.dart';

import '../DConstant.dart';

/*
 * 操作人 : dyc
 * 描  述 : 主页面
 */
class DYCHomeRoute extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Scaffold(
      appBar: AppBar(
        title: Text("控件"),
      ),
      body: Center(
        child: Column(
          children: <Widget>[
            RaisedButton(
              onPressed: () {
                Navigator.pushNamed(context, DConstant.DYC_JUMP);
              },
              child: Text("控件学习"),
            ),
            RaisedButton(
                onPressed: () {
                  Navigator.pushNamed(context, DConstant.DYC_NETWORK_PAGE);
                },
                child: Text("网络控件")),
            RaisedButton(
              onPressed: () {
                Navigator.pushNamed(context, DConstant.DYC_BANNER_PAGE);
              },
              child: Text("轮播图学习"),
            ),
            RaisedButton(onPressed: (){
              Navigator.pushNamed(context,  DConstant.DYC_SP_PAGE);
            },
              child: Text("SP学习"),
            )
          ],
        ),
      ),
    );
  }
//  @override
//  Widget build(BuildContext context) {
//    return Center(
//      child: RaisedButton(
//        onPressed: () {
//          Navigator.pushNamed(context, DConstant.DYC_JUMP);
//        },
//        child: Text("控件学习",
//          style: TextStyle(fontSize: 14, color: Colors.blue))),
//    );
//  }
}
